# $Id: PKGBUILD 88039 2013-04-10 13:33:58Z foutrelis $
# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
# Contributor: Ionut Biru <ibiru@archlinux.org>
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: FJ <joostef@gmail.com>
# Contributor: Sebastien Piccand <sebcactus gmail com>

pkgname=gaupol
pkgver=0.22
pkgrel=1
pkgdesc="An editor for text-based subtitles"
arch=('any')
url="http://home.gna.org/gaupol"
license=('GPL')
depends=('python-gobject' 'iso-codes' 'desktop-file-utils'
         'hicolor-icon-theme')
makedepends=('gettext' 'intltool')
optdepends=('python-pyenchant: spell-checking'
            'python-gtkspellcheck: inline spell-checking'
            'python-chardet: character encoding auto-detection'
            'mplayer: subtitle preview'
            'vlc: subtitle preview')
install=gaupol.install
source=(http://download.gna.org/$pkgname/0.22/$pkgname-$pkgver.tar.xz)
sha256sums=('fa91a3606d11e261abcb572e8f573cd18290428e797c07e88047d8a9a056141d')

package() {
  cd "$srcdir/$pkgname-$pkgver"

  python3 setup.py --without-iso-codes install --root="$pkgdir" -O1
}

# vim:set ts=2 sw=2 et:
